﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ebay.Model
{
    public class OrderPrimaryKey
    {
        public virtual string eBayUserID { get; set; }

        public virtual string OrderLineItemID { get; set; }

        public override Boolean Equals(object ojb) {
            return base.Equals(ojb);
        }

        public override int GetHashCode() {
            return base.GetHashCode();
        }
    }

    [Serializable]
    public class Order
    {
        public virtual OrderPrimaryKey PrimaryKey { get; set; }
        //public virtual string EbayUserId { get; set; }

        //public virtual string OrderLineItemId { get; set; }

        public virtual string OrderID { get; set; }

        public virtual string NewOrderId { get; set; }

        public virtual string OrderSalesRecordNumber { get; set; }

        public virtual string SalesRecordNumber { get; set; }

        public virtual string UserId { get; set; }

        public virtual string BuyerFullName { get; set; }

        public virtual string BuyerEmail { get; set; }

        public virtual string BuyerAddress1 { get; set; }

        public virtual string BuyerAddress2 { get; set; }

        public virtual string BuyerCity { get; set; }

        public virtual string BuyerCounty { get; set; }

        public virtual string BuyerState { get; set; }

        public virtual string BuyerPostcode { get; set; }

        public virtual string BuyerCountry { get; set; }

        public virtual string BuyerPhoneNumber { get; set; }

        public virtual string ItemID { get; set; }

        public virtual string TransactionID { get; set; }

        public virtual string ItemTitle { get; set; }

        public virtual int Quantity { get; set; }

        public virtual double SalePrice { get; set; }

        public virtual double FinalValueFee { get; set; }

        public virtual double PostageAndPackaging { get; set; }

        public virtual double Insurance { get; set; }

        public virtual double TotalPrice { get; set; }

        public virtual string PaymentMethod { get; set; }

        public virtual string PayPalTransactionID { get; set; }

        public virtual DateTime SaleDate { get; set; }

        public virtual DateTime CheckoutDate { get; set; }

        public virtual DateTime PaidonDate { get; set; }

        public virtual DateTime DispatchDate { get; set; }

        public virtual string PostageService { get; set; }

        public virtual string FeedbackLeft { get; set; }

        public virtual string FeedbackReceived { get; set; }

        public virtual string NotestoYourself { get; set; }

        public virtual string CustomLable { get; set; }

        public virtual string PrivateNotes { get; set; }

        public virtual string VariationSKU { get; set; }

        public virtual string Variation_Name { get; set; }

        public virtual string Variation_Value { get; set; }

        public virtual string VariationTitle { get; set; }

        public virtual string VariationViewItemURL { get; set; }

        public virtual string EBayPaymentStatus { get; set; }

        public virtual int FeedbackScore { get; set; }

        public virtual double PositiveFeedbackPercent { get; set; }

        public virtual double FeeOrCreditAmount { get; set; }

        public virtual double PaymentOrRefundAmount { get; set; }

        public virtual string Platform { get; set; }

        public virtual string CompleteStatus { get; set; }

        public virtual string CheckoutStatus { get; set; }

        public virtual DateTime LastTimeModified { get; set; }

        public virtual int OrderStatusId { get; set; }

        public virtual string OrderRetentionReson { get; set; }

        public virtual string IsPay { get; set; }

        public virtual int FeedBackStatusId { get; set; }

        public virtual int ShippingStatusId { get; set; }

        public virtual string Standard { get; set; }

        public virtual string IsOutStock { get; set; }

        public virtual int DeliveryId { get; set; }

        public virtual int WarehouseId { get; set; }

        public virtual string Claim { get; set; }

        public virtual double PayPalFee { get; set; }

        public virtual string BuyerId { get; set; }

        public virtual string BuyerName { get; set; }

        public virtual string AddressLine1 { get; set; }

        public virtual string AddressLine2 { get; set; }

        public virtual string City { get; set; }

        public virtual string County { get; set; }

        public virtual string PostalCode { get; set; }

        public virtual string Country { get; set; }

        public virtual string ContactPhoneNumber { get; set; }

        public virtual string CancelUser { get; set; }

        public virtual DateTime CancelDate { get; set; }

        public virtual string DeliveryUser { get; set; }

        public virtual DateTime DeliveryDate { get; set; }

        public virtual DateTime PDate { get; set; }

        public virtual string PrintUserId { get; set; }

        public virtual DateTime PrintDate { get; set; }

        public virtual string IsReBuilderOrder { get; set; }

        public virtual int MatchStatusId { get; set; }

        public virtual DateTime MatchDate { get; set; }

        public virtual string Memo { get; set; }

        public virtual string Mnote { get; set; }

        public virtual string Muser { get; set; }

        public virtual DateTime Mtime { get; set; }

        public virtual string Auser { get; set; }

        public virtual DateTime Atimel { get; set; }
    }
}
